<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript" src="jquery-1.7.1.js"></script>
<script type="text/javascript">
//the function of the ready block executes after the loading of dom is complete
$(document).ready(
		function(){
			$("a").click(
					function(){
						alert("Hello World!");
					}
					);
		}
		
		);
</script>
<body>
<a href="#">test1</a><br>
<a href="#">test2</a><br>
<a href="#">test3</a><br>
<a href="#">test4</a><br>
<a href="#">test5</a><br>

</body>
</html>